package com.atguigu.gulimall.order.dao;

import com.atguigu.gulimall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单
 * 
 * @author GCQ
 * @email python0526@163.com
 * @date 2020-12-18 14:30:22
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    /**
     * 更改订单支付状态为已支付
     * @param outTradeNo
     * @param code
     */
    void updateOrderStatus(@Param("outTradeNo") String outTradeNo, @Param("code") Integer code);
}
